package cn.com.joycode.nimble.core.message;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;

/**
 * 泛型消息容器对象
 *
 * @author Max Woods
 */

public class NbMsgObject<T> extends NbMsg {

    @Getter
    @JsonIgnore
    private T object;

    public void putObject(T value) {
        this.object = value;
        super.getBody().clear();
        super.putBody(value);
    }
}
